home *** CD-ROM | disk | FTP | other *** search
Java Source | 1997-02-27 | 823 b | 41 lines | [TEXT/SK8 ] |
- /* SK8 © 1997 Apple Computer, Inc.
- This code is protected under the current SK8 License
- See http://sk8.research.apple.com/ for more information
- Apple Research Laboratories
- */
-
-
-
- import java.awt.*;
-
-
- public class player {
-
- //----------------------------------------
- //Property Definitions:
- //----------------------------------------
-
- //The score Property:
- protected int fScore = 0;
- public int score () {
- return fScore;
- }
- /* the player object.
- add the labels
- */
- public Object setscore ( int newvalue ) {
- fScore = newvalue;
- ((label) this.scorelabel()).settext("" + newvalue + "");
- return null;
- }
-
- //The scorelabel Property:
- protected actor fScorelabel = null;
- public actor scorelabel () {
- return fScorelabel;
- }
- public void setscorelabel (actor value) {
- fScorelabel = value;
- }
- }
-